package club.twelveblog.tblog.common.constants;

/**

 * @classname: HttpStatusConstants
 * @description: Http成功返回状态常量
 **/
public enum HttpStatusConstants {

    OK(200,"成功"),
    UPDATE_SUCCESS(201,"信息更新成功"),
    UPLOAD_SUCCESS(200,"照片上传成功"),
    DELETE_SUCCESS(201,"文章删除成功"),
    LOGIN_SUCCESS(200,"登录成功"),
    REGISTER_SUCCESS(200,"注册成功"),
    SUCCESS(200,"success"),
    ;

    private final int status;
    private final String content;

    HttpStatusConstants(int status, String content) {
        this.status = status;
        this.content = content;
    }

    public int getStatus() {
        return status;
    }

    public String getContent() {
        return content;
    }
}
